﻿using System.Collections.Generic;

namespace Pomodoro.ViewModels.Models
{
    public static class DataService
    {
        public static List<Person> GetPersons()
        {
            var persons = new List<Person>();

            var person = new Person
                             {
                                 ID = 12345,
                                 FirstName = "Sam",
                                 LastName = "Bourts",
                                 Photo = @"/Pomodoro.Oob;Component/Images/bourton.png",
                                 Role = "Developer",
                                 Tasks =
                                     new List<Task>
                                         {
                                                new Task{Description="Plan DDD talk" , Done=5, Estimated = 8},
                                             new Task{Description="Emails" , Done=1, Estimated = 2},
                                             new Task{Description="iPhone app" , Done=2, Estimated = 7},
                                             new Task{Description="Tax Return" , Done=0, Estimated = 6},
                                         }
                             };

            persons.Add(person);

            person = new Person
               {
                   ID = 12345,
                   FirstName = "Allen",
                   LastName = "Jonesy",
                   Photo = @"/Pomodoro.Oob;Component/Images/jones.jpg",
                   Role = "Architect",
                   Tasks =
                                       new List<Task>
                                         {
                                                new Task{Description="Plan DDD talk" , Done=5, Estimated = 8},
                                             new Task{Description="Emails" , Done=1, Estimated = 2},
                                             new Task{Description="iPhone app" , Done=2, Estimated = 7},
                                             new Task{Description="Tax Return" , Done=0, Estimated = 6},
                                         }
               };

            persons.Add(person);

            person = new Person
             {
                 ID = 12345,
                 FirstName = "Sam",
                 LastName = "Noble",
                 Photo = @"/Pomodoro.Oob;Component/Images/noble.jpg",
                 Role = "Designer",
                 Tasks =
                                   new List<Task>
                                         {
                                             new Task{Description="Plan DDD talk" , Done=5, Estimated = 8},
                                             new Task{Description="Emails" , Done=1, Estimated = 2},
                                             new Task{Description="iPhone app" , Done=2, Estimated = 7},
                                             new Task{Description="Tax Return" , Done=0, Estimated = 6},
                                         }
             };

            persons.Add(person);

            return persons;
        }

        public static List<string> GetRoles()
        {
            var items = new List<string> 
                            {
                                {"Designer"},
                                {"Developer"},
                                {"Architect"},
                                {"Tester"}
                            };

            return items;
        }
    }
}
